import { detailhouseAPI } from "../../../api/houseapi";
Page({
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id='+ this.data.detail.id,
    })
  },
  data:{
    detail:{}
  },
  onLoad(ev) {
    console.log(ev.id);
    this.detailhouse(ev.id)
  },

  async detailhouse(id) {
    const res = await detailhouseAPI(id)
    console.log(res);
    this.setData({
      detail : res.data
    })
  }
})
